package com.th.supcom.pds.phamapply.client.widget.inpharmacyreturn;

import com.extjs.gxt.ui.client.widget.form.FieldSet;
import com.extjs.gxt.ui.client.widget.layout.FitLayout;
import com.th.supcom.pds.common.client.commom.FieldPanel;

/**
 * 查询面板
 * 
 * @author yzhang
 */
public class NurseReturnPatientPanel extends FieldSet
{
    /** 住院药房退药文本域集合. */
    private final NurseReturnFields m_nurseReturnFields;

    /**
     * 构造方法
     * 
     * @param drugReturnAndRefundFields
     * @param drugReturnButtons
     */
    public NurseReturnPatientPanel (NurseReturnFields NurseReturnFields)
    {
        m_nurseReturnFields = NurseReturnFields;
        initUI ();
    }

    /**
     * 初始化界面
     */
    private void initUI ()
    {
        setHeading ("患者信息");
        setLayout (new FitLayout ());
        FieldPanel pp = new FieldPanel ();
        pp.setLabelAlian ("L");

        pp.addCol (m_nurseReturnFields.getPatiNameField (), 1, null, 55);
        pp.addCol (m_nurseReturnFields.getPatiIdForDisplayField (), 1, null, 55);
        pp.addCol (m_nurseReturnFields.getSexField (), 1, null, 55);
        pp.addCol (m_nurseReturnFields.getBedNoForDisplayField (), 1, null, 55);
        pp.addCol (m_nurseReturnFields.getDeptAdmissionDateField (), 1, null, 55);
        pp.newRow ();
        pp.addCol (m_nurseReturnFields.getPrepaidField (), 1, null, 55);
        pp.addCol (m_nurseReturnFields.getDeptAdmissionNameField (), 1, null, 55);
        pp.addCol (m_nurseReturnFields.getChargeTypeName (), 1, null, 55);
        pp.addCol (m_nurseReturnFields.getWatchTimesForDisplay (), 1, null, 55);
        pp.addCol (m_nurseReturnFields.getDeptAdmissionDays (), 1, null, 55);
        pp.newRow ();
        add (pp);
    }
}
